package com.note.vo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class TComm {
    private Integer id;
    private String contents;
    private Integer noteid;
    private Integer userid;
    private Integer likes;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createtime;
    private String loginname;
    private String avatar;

    public TComm(Integer id, String contents, Integer noteid, Integer userid, Integer likes, Date createtime, String loginname, String avatar) {
        this.id = id;
        this.contents = contents;
        this.noteid = noteid;
        this.userid = userid;
        this.likes = likes;
        this.createtime = createtime;
        this.loginname = loginname;
        this.avatar = avatar;
    }

    public TComm() {
    }

    @Override
    public String toString() {
        return "TComm{" +
                "id=" + id +
                ", contents='" + contents + '\'' +
                ", noteid=" + noteid +
                ", userid=" + userid +
                ", likes=" + likes +
                ", createtime=" + createtime +
                ", loginname='" + loginname + '\'' +
                ", avatar='" + avatar + '\'' +
                '}';
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContents() {
        return contents;
    }

    public void setContents(String contents) {
        this.contents = contents;
    }

    public Integer getNoteid() {
        return noteid;
    }

    public void setNoteid(Integer noteid) {
        this.noteid = noteid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getLikes() {
        return likes;
    }

    public void setLikes(Integer likes) {
        this.likes = likes;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getLoginname() {
        return loginname;
    }

    public void setLoginname(String loginname) {
        this.loginname = loginname;
    }
}

